<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">



    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>角色管理</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">角色名</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" value="{$info.name}" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        {foreach name="powers" item="power"}
                            <div class="form-group">
                                <div class="col-sm-2 text-center">
                                    <div class="checkbox checkbox-info checkbox-inline checkbox-circle">
                                        <input type="checkbox" class="power_parent" id="inlineCheckbox{$power['id']}" value="{$power['id']}" name="power_id[]" {if condition="in_array($power['id'],$powerRoleArr)"}checked{/if} >
                                        <label for="inlineCheckbox{$power['id']}"> {$power['name']} </label>
                                    </div>
                                </div>
                                <div class="col-sm-10" style="border-left:1px dashed #e7eaec">
                                    {foreach name="power['son']" item="son"}
                                        <div class="col-sm-2">
                                            <div class="checkbox checkbox-success checkbox-inline">
                                                <input type="checkbox" class="power_parent_id_{$power['id']}" id="inlineCheckbox{$son['id']}" value="{$son['id']}" name="power_id[]" {if condition="in_array($son['id'],$powerRoleArr)"}checked{/if} >
                                                <label for="inlineCheckbox{$son['id']}"> {$son['name']} </label>
                                            </div>
                                        </div>
                                    {/foreach}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        {/foreach}

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="button" onclick="history.back()">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/dist/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
</html>
